package com.library.dao;

import java.util.List;

import com.library.bean.Book;

public interface BookDao {
	/**
	 * 查询所需要的书本信息
	 * @param pageNum
	 * @param pageSize
	 * @param bookId
	 * @param bookNo
	 * @param bookName
	 * @param bookWriter
	 * @param bookPrice
	 * @param bookNum
	 * @param bookType
	 * @return
	 */
	List<Book> selectBookAll(int pageNum ,int pageSize ,String bookId , String bookNo,String bookName,String bookWriter,double minBookPrice,double maxBookPrice,String bookType);
	/**
	 * 查询所需要的总条数
	 * @param bookId
	 * @param bookNo
	 * @param bookName
	 * @param bookWriter
	 * @param bookPrice
	 * @param bookNum
	 * @param bookType
	 * @return
	 */
	int bookTotalRows(String bookId , String bookNo,String bookName,String bookWriter,double minBookPrice,double maxBookPrice,String bookType);

	/**
	 * 根据书本Id删除书籍
	 * @param BookId
	 * @return
	 */
	int deleteBookByBookId(int BookId);
}
